package com.ketan.chameleonmuseum.ui.base
import android.util.Log
import com.ketan.chameleonmuseum.BuildConfig

/**
 * @author  ketan on 2020/8/22.
 */
class AddUtil {
    companion object {
        private const val TAG = "AddUtil"
        fun logMethodInfo() {
            if(BuildConfig.DEBUG){
                val className =
                    Thread.currentThread().stackTrace[3].className //调用的类名
                val methodName =
                    Thread.currentThread().stackTrace[3].methodName //调用的方法名
                val lineNumber =
                    Thread.currentThread().stackTrace[3].lineNumber //调用的行数
                Log.e(TAG, "${methodName} :--->" + lineNumber + "\n" + className)
            }
        }
    }


}